//
//  YWMonitorAlarmModel.h
//  maintain
//
//  Created by 烟雨云渊 on 17/1/9.
//  Copyright © 2017年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
@class YWEquipment;
@class YWLocation;
@class YWField;

typedef NS_ENUM(NSInteger, YWMonitorAlarmModelStatus) {
    YWMonitorAlarmModelStatusUnnormal = 0,//不正常
    YWMonitorAlarmModelStatusNormal = 1,//正常
};

@interface YWMonitorAlarmModel : NSObject
/*id*/
@property (nonatomic, assign) NSInteger monitorId;
/*设备对象*/
@property (nonatomic, strong) YWEquipment * equipment;
/*运行参数信息*/
@property (nonatomic, strong) YWField * field;
/*标题*/
@property (nonatomic, copy) NSString * title;
/*内容*/
@property (nonatomic, copy) NSString * content;
/*报警时间*/
@property (nonatomic, assign) NSTimeInterval warnTime;
/*创建时间*/
@property (nonatomic, assign) NSTimeInterval createTime;
/*当前参数值*/
@property (nonatomic, assign) double warnValue;
@end




